<template>
    <div>
        <Head></Head>
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/manage/order' }">订单管理</el-breadcrumb-item>
            <el-breadcrumb-item>订单列表</el-breadcrumb-item>
        </el-breadcrumb>
        <div class="order-body">
            <SearchOrder></SearchOrder>
            <ListOrder style="margin-top: 30px"></ListOrder>
            <Pagination :paginationObject="pagination" :paginationMethod="showOrder"></Pagination>
            <LookOrder></LookOrder>
        </div>
    </div>
</template>

<script>
import Head from "../cart/head"
    import ListOrder from "../../components/order/ListOrder";
    import SearchOrder from "../../components/order/SearchOrder";
    import Pagination from "../../components/Pagination";
    import LookOrder from "../../components/order/LookOrder";
    import {mapActions, mapState} from "vuex";

    export default {
        components: {SearchOrder, ListOrder, Pagination, LookOrder,Head,},
        computed: {
            ...mapState("order", ["pagination"])
        },
        methods: {
            ...mapActions("order", ["showOrder"])

        }
    };
</script>

<style>
    .order-body {
        width: 100%;
        margin-top: 40px
    }

    .order-input-with-select {
        width: 40%;
    }

    .order-input-with-select .el-input-group__prepend {
        background-color: #fff;
    }

    .order-input-with-select .el-input {
        width: 120px;
    }

    .order-el-table {
        margin-top: 30px
    }
</style>
